package com.woniu.rear.comm.web.feign;

import java.util.concurrent.TimeUnit;

import org.springframework.context.annotation.Bean;

import feign.Logger;
import feign.Request;

/**
 * Feign的基础配置
 * @author liwei
 *
 */
public class FeignBaseConfig {
	
	/**
	   *   配置Feign的基础参数
	 * @return Options
	 */
	@Bean
	public Request.Options options() {
		return new Request.Options(20, TimeUnit.SECONDS, 20, TimeUnit.SECONDS, true);
	}
	
	/**
	   *   配置Feign的日志级别
	 * @return Level
	 */
	@Bean
	public Logger.Level level() {
		return Logger.Level.BASIC;
	}

}
